package gao.xiaolei.entity;

import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Data
@Table(name = "auth_resource_view")
public class AuthResourceView {
    @Id// 添加一个空的id标识，因为jpa在映射实体是需要一个id，这个必须

    @Column(name = "url", nullable = false)
    private String url;

    @Column(name = "user_id", nullable = false,columnDefinition = "char(32)")
    private String userId;

    @Column(name = "resource_id", nullable = false,columnDefinition = "char(32)")
    private String resourceId;

    @Column(name = "resource_type", nullable = false)
    private Integer resourceType;
}
